package com.guochuang.yunwang.promanager.service;

import com.guochuang.yunwang.promanager.domain.UserGroup;
import com.guochuang.yunwang.promanager.domain.dto.group.GroupManageDTO;
import com.guochuang.yunwang.promanager.domain.vo.group.GroupUserVO;

import java.util.List;

public interface UserGroupService {
    public Integer addUserGroup(UserGroup userGroup);

    public Integer updateUserGroup(UserGroup userGroup);

    public UserGroup getUserGroupByGId(Integer gid);

    public List<Integer> selectAllRidsByGid(Integer gid);

    public List<GroupManageDTO> selectGroupManageDTOsInGroupByGid(Integer gid);
    public List<GroupManageDTO> selectAllGroupManageDTOs();

    public List<Integer> selectAllUidsInGroupByGroupId(Integer id);

    Integer addUserToGroup(Integer gid, List<Integer> uids);

    List<GroupUserVO> getGroupUsersList(Integer gid);

    Integer deleteGroupUser(Integer gid, Integer uid);

    Integer updateGroupUserRole(Integer uid, Integer gid, Integer rid);
}
